#ifndef Stack_h
#define Stack_h

#include "Node.h"

template<class TEntity>
class Stack
{
      private :
          Node<TEntity> *first;
          Node<TEntity> *last;
          int length;   
             
      public :
          Stack();
          Node<TEntity>* getFirst();
          Node<TEntity>* getLast();
          void push(TEntity* entity);
          Node<TEntity>* pop();
          int getLength();
};
#endif
